package org.belkodevelop.realty.domen;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("HOUSE")
public class House extends Land {
    
    @Column(name = "number_rooms", nullable = false)
    private Short numberRooms;
    
    @Column(name = "levels_building")
    private Short levelsBuilding;
    
    @Column(name = "area")
    private Double area;
    
    public void setNumberRooms(Short numberRooms) {
        this.numberRooms = numberRooms;
    }
    
    public Short getNumberRooms() {
        return numberRooms;
    }
    
    public void setLevelsBuildings(Short levelsBuilding) {
        this.levelsBuilding = levelsBuilding;
    }
    
    public Short getLevelsBuildings() {
        return levelsBuilding;
    }
    
    public void setArea(Double area) {
        this.area = area;
    }
    
    public Double getArea() {
        return area;
    }
}
